Skip to content

chore: add logical-assignment-operators#7409

Open
CommanderStorm wants to merge 7 commits intomaplibre:mainfrom
CommanderStorm:logical-assignment-operators
Open

chore: add logical-assignment-operators#7409
CommanderStorm wants to merge 7 commits intomaplibre:mainfrom
CommanderStorm:logical-assignment-operators

Conversation

@CommanderStorm
Copy link
Copy Markdown
Member

simplifies the code, but won't make it shorter until #7404

logical assigment is es2021

@CommanderStorm CommanderStorm requested a review from HarelM April 5, 2026 04:00
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 5, 2026

Codecov Report

❌ Patch coverage is 92.66055% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.52%. Comparing base (0b9b3bd) to head (0d43817).

Files with missing lines Patch % Lines
src/render/glyph_manager.ts 66.66% 2 Missing ⚠️
src/source/worker.ts 66.66% 2 Missing ⚠️
src/data/bucket/symbol_bucket.ts 80.00% 1 Missing ⚠️
src/source/canvas_source.ts 66.66% 1 Missing ⚠️
src/symbol/projection.ts 50.00% 1 Missing ⚠️
src/util/test/util.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7409      +/-   ##
==========================================
- Coverage   92.77%   92.52%   -0.26%     
==========================================
  Files         289      289              
  Lines       24021    23989      -32     
  Branches     5100     5091       -9     
==========================================
- Hits        22286    22196      -90     
- Misses       1735     1793      +58     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@CommanderStorm CommanderStorm requested a review from HarelM April 5, 2026 05:15
@CommanderStorm CommanderStorm enabled auto-merge (squash) April 5, 2026 05:16
if (this.imageAtlas) {
this.imageAtlas = null;
}
this.imageAtlas &&= null;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just = null without the if or &&?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not a code change

if (this.dashPositions) {
this.dashPositions = null;
}
this.dashPositions &&= null;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not a code change

if (this._frameId) {
this._frameId = null;
}
this._frameId &&= null;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better to set it to false as this is a boolean, or even change its name to indicate it's not holding an id.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not a code change. Lets stick to the previous logic.

@HarelM
Copy link
Copy Markdown
Collaborator

HarelM commented Apr 5, 2026

Thanks! Done my review, looks good overall, added a few comments.

@CommanderStorm CommanderStorm requested a review from HarelM April 14, 2026 05:54
@CommanderStorm
Copy link
Copy Markdown
Member Author

it is very hard to do lints against a moving target. can we +1 instead of bike shedding on the small stuff please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants